/**
 * Copyright (C) 2010  Hylke van der Schaaf
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
package hextd.core;

import hextd.creep.HexTDCreep;
import hextd.creep.HexTDCreepData;
import com.usoog.tdcore.creep.FactoryCreep;
import com.usoog.tdcore.gameloop.GameLoopManager;
import com.usoog.tdcore.gamemanager.AbstractGameManager;
import com.usoog.tdcore.player.Player;
import hextd.hex.HexTile;
import hextd.tower.HexTDTower;

/**
 *
 * @author hylke
 */
public class GameManagerImplementation
		extends AbstractGameManager<HexTDCreep, HexTDCreepData, HexTDTower, HexTile> {

	private String status;
	private GameGridImplementation gameGrid;

	public GameManagerImplementation() {
		super();
		gameGrid = new GameGridImplementation(this);
		setCreepFactory(new FactoryCreep<HexTDCreep, HexTDCreepData>(this));
		setGameState(new GameStateImplementation(this, gameGrid));
		setGameLoopManager(new GameLoopManager(this, this, this));
	}

	@Override
	public void endGame() {
		throw new UnsupportedOperationException("Not supported yet.");
	}

	@Override
	public void refreshGameUI() {
		throw new UnsupportedOperationException("Not supported yet.");
	}

	@Override
	public void playerDied(Player player) {
		// Do nothing for now
	}

	@Override
	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String getStatus() {
		return status;
	}

	@Override
	public void setPause(boolean b, boolean transmit) {
		throw new UnsupportedOperationException("Not supported yet.");
	}
}
